#include <vector>
#include <string>
class CSW_Circuit
{
    void make_circuit(const CFunction& func);
    void read_from_file(const string& filename);
    void write_to_file(const string& filename);
    void optimize();
}
class CContact_Scheme
{
    void make_scheme(const CFunction& func);
    void read_from_file(const string& filename);
    void write_to_file(const string& filename);
    void optimize();
}
class CFunction
{
	std::vector <bool> value[32];
	int type1;
	int type2;
	CSW_Circuit Circuit;
	CContact_Scheme Scheme;
public:
	CFunction (int value);
	CFunction (bool value[32]);
}